import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

//引入模块化的 小仓库
import home from './home.js'
import search from './search.js'
import detail from './detail.js'
import shopcart from './shopcart.js'
import LoginAndLoginOut from './LoginAndLoginOut.js'

export default new Vuex.Store({
    modules:{
        home,
        search,
        detail,
        shopcart,
        LoginAndLoginOut
    }
})